<%@page import="java.util.List"%>
<%@ page contentType="text/html;charset=UTF-8"%>
<!DOCTYPE html>
<%@ include file="/WEB-INF/view-system/include/contentTaglib.jsp"%>

<html>
<head>
<title>对公结清(财务)</title>
	<script src="${ctxStaticSystem }/js/dataexport/exportContraryFinance.js" type="text/javascript" ></script>
	<link href="${ctx}/static-system/css/staff/staff.css" rel="stylesheet" type="text/css"/>
	 <link href="${ctxStaticSystem }/css/roleManage/roleManage.css" rel="stylesheet" type="text/css"/>
</head> 
<body>
<tags:dataSet id="exportFinance">
	<tags:dataField name="settleWithholdId" visiable="false" display="办理结清证明记录ID"/>
	<tags:dataField name="custNo" display="客户编号" visiable="false" sort="false"  cssClass="table-header-center" width="25%"/>
	<tags:dataField name="custName" display="客户名称" visiable="true" sort="false" width="25%" cssClass="table-header-center"/>
	<tags:dataField name="loanNo" display="贷款编号" sort="false" visiable="true" width="25%" cssClass="table-header-center"/>
	<tags:dataField name="customerIdcard" display="客户身份证号" visiable="false" sort="false" width="25%" cssClass="table-header-center"/>
	<tags:dataField name="totalNo" display="贷款产品" visiable="false" sort="false" width="25%" cssClass="table-header-center"/>
	<tags:dataField name="totalName" display="贷款产品" sort="false" width="25%" cssClass="table-header-center"/>
	<tags:dataField name="loanAmt" display="贷款金额" sort="false" width="25%" cssClass="table-header-center"/>
	<tags:dataField name="applyDate" display="贷款时间" sort="false" width="25%" cssClass="table-header-center"/>
	<tags:dataField name="settleWithholdStatus" display="处理状态" sort="false" visiable="false" width="25%" cssClass="table-header-center"/>
	<tags:dataField name="settleWithholdStatusZw" display="处理状态" sort="false" width="25%" cssClass="table-header-center"/>
	<tags:dataField name="dkStatus" display="还款状态" sort="false" width="25%" visiable="false" cssClass="table-header-center"/>
	<tags:dataField name="dkStatusZw" display="还款状态" sort="false" width="25%" cssClass="table-header-center"/>
	<tags:dataField name="settleWithholdDesc" display="描述" sort="false" visiable="false" width="25%" cssClass="table-header-center"/>
	<tags:dataField name="repayTotalYh" display="结清金额" sort="false" width="25%" cssClass="table-header-center"/>
	<tags:dataField name="tranAmt" display="交易金额" sort="false" width="25%" cssClass="table-header-center"/>
	<tags:dataField name="reduPenaltyFlag" display="是否减免" visiable="false" sort="false" width="25%" cssClass="table-header-center"/>
	<tags:dataField name="reduPenaltyFlagZw" display="是否减免" visiable="false" sort="false" width="25%" cssClass="table-header-center"/>
	<tags:dataField name="breaksFlag" display="是否减免" sort="false" width="25%" visiable="false" cssClass="table-header-center"/>
	<tags:dataField name="reduPenaltyAmt" display="减免金额" sort="false" width="25%" visiable="false" cssClass="table-header-center"/>
	<tags:dataField name="reduPenaltyDesc" display="减免原因" visiable="false" sort="false" width="25%" cssClass="table-header-center"/>
	<tags:dataField name="updateTime" display="更新时间" sort="false" width="25%" cssClass="table-header-center"/>
	<tags:dataField name="dealuserName" display="处理人" sort="false" width="25%" cssClass="table-header-center"/>
	<tags:dataField name="withholdChannel" display="交易渠道" sort="false" visiable="false" width="25%" cssClass="table-header-center"/>
	<tags:dataField name="chanName" display="资方" sort="false" visiable="false" width="25%" cssClass="table-header-center"/>
	<tags:dataField name="operaterName" display="登记人" sort="false" width="25%" cssClass="table-header-center"/>
</tags:dataSet>

<tags:ajax id="queryFinanceListAjax" url="${ctx}/sms/contraryFinance/queryList" type="post"
	contentType="application/x-www-form-urlencoded" formQuery="#settleQueryFrm" formSubmit="true"
	autoSend="false"/>
<tags:ajax id="exportExcelAllAjax" url="${ctx}/sms/contraryFinance/queryExportExcel" type="post"
 	contentType="application/x-www-form-urlencoded"
    autoSend="false" onSuccess="onExportAllSucc" />
<tags:ajax id="exportExcelAjax" url="${ctx}/sms/contraryFinance/queryExportExcel" type="post"
 	contentType="application/x-www-form-urlencoded" formQuery="#settleQueryFrm" formSubmit="true" 
    autoSend="false" onSuccess="onExportSucc"/>
	
<tags:boards>
	<tags:board boardTitle="对公结清(财务)" width="100%">
			<form id="settleQueryFrm" class='m-cust'>
					<div class="row form-group">
<!-- 				  		<div class="col-md-10 form-group outrDiv"> -->
						<div class="col-md-4">
				  			<div class="col-md-4 col-sm-4">
				  				<label>客户名称：</label>
				  			</div>
							<div class="col-md-8 col-sm-8">
								<input name="custName" class="form-control" id="custName" type="text">
							</div>
						</div>
						<div class="col-md-4">
				  			<div class="col-md-4 col-sm-4">
				  				<label>贷款编号：</label>
				  			</div>
							<div class="col-md-8 col-sm-8">
								<input name="loanNo" class="form-control" id="loanNo" type="text">
							</div>	
						</div>
						<div class="col-md-4">
							<div class="col-md-4 col-sm-4">
							 	<label >还款状态：</label>
							</div>
							<div class="col-md-8 col-sm-8">
								<!-- <select name="dkStatus" class="form-control" id="dkStatus">
								 <option value="038002">未还</option>
								 <option value="038003">已还</option>
								 <option value="038001">取消</option>
								 <option value="">全部</option>
								</select> -->
								<tags:dropcode id="dkStatus" codeType="repayDgStatus" className="form-control"
									name="dkStatus" showSelectAll="true"
									onSuccess="caiwuState"/>
							</div>	
						</div>
					</div>
					<div class="row form-group">
						<div class="col-md-4">
				  			<div class="col-md-4 col-sm-4">
							 	<label >开始时间：</label>
							</div>
							<div class="col-md-8 col-sm-8">
								<tags:datepicker dateFormat="yyyy-MM-dd" name="startDate"
											dateType="date" id="startDate"/>
							</div>
						</div>
						<div class="col-md-4">
							<div class="col-md-4 col-sm-4">
							 	<label >结束时间：</label>
							</div>
							<div class="col-md-8 col-sm-8">
								<tags:datepicker dateFormat="yyyy-MM-dd" name="endDate"
											dateType="date" id="endDate"/>
							</div>
						</div>
						<div class="col-md-4">
							<div class="col-md-4 col-sm-4">
							 	<label >还款方式：</label>
							</div>
							<div class="col-md-8 col-sm-8">
								<select name="repaychntype" class="form-control" id="repaychntype">
								 <option value="029001">对公账户</option>
								</select>
							</div>	
						</div>
						
<!-- 						</div> -->
					</div> 
					<div class="form-group">
					   	<button class="btn btn-warning m-btn" type="button" onclick="query()">查询</button>
					   	<button class="btn btn-default m-btn" type="reset">重置</button>
					  	<button class="btn btn-info m-btn" type="button" onclick="exportExcel()">导出excel</button>
<!-- 					  	<button class="btn " type="button" onclick="onExportAllSucc()">全部导出</button> -->
					 </div>
					 <div class="form-group">
						 <div data-tag="对公结清扣款" class="form-horizontal">
								<tags:datatable id="financeDataTable" storage="false"  
									ajax="queryFinanceListAjax" dataSet="exportFinance" 
									pagination="financePagination" striped="true" automatic="false"
									cutLine="true" onDoubleClick="onDoubleClick"/>
								<tags:pagination pageSize="10" id="financePagination" 
								pageChoice="10" datatable="financeDataTable"/>
					     </div>
				      </div> 
			</form>	 
	</tags:board>
</tags:boards>


</body>
</html>